package cn.wangxl.group.rpc.discover;

import cn.wangxl.group.rpc.protocol.Protocol;

import java.util.ArrayList;
import java.util.List;

/**
 * @Deacription LocalConfigServiceInfoDsicoverer
 * @Author 20112128
 * @Date 2020/9/18 10:20
 **/
public class LocalConfigServiceInfoDiscoverer implements ServiceInfoDiscoverer{

    @Override
    public List<ServiceInfo> getServiceInfo(String name) {
        List<ServiceInfo> list = new ArrayList<>();

        ServiceInfo serviceInfo = new ServiceInfo();
        serviceInfo.setName("user");
        serviceInfo.setPort(8080);
        serviceInfo.setHost("127.0.0.1");
        serviceInfo.setProtocol(Protocol.JAVA);

        list.add(serviceInfo);

        return list;
    }

}
